var express=require('express');
var router=express.Router();

var planManage=require('../controllers/planManageCtl.js');
var GetListHtml=planManage.GetListHtml;
var GetAddHtml=planManage.GetAddHtml;
var SavePlan=planManage.SavePlan;

var GetPageQuantity=planManage.GetPageQuantity;
var FirstShow=planManage.FirstShow;
var ShowPage=planManage.ShowPage;
var FetchPlan=planManage.FetchPlan;

var ConditionPlan=planManage.ConditionPlan;

var DeletePlan=planManage.DeletePlan;

router.get('/getListHtml',GetListHtml);
router.get('/getAddHtml',GetAddHtml);

router.post('/savePlan',SavePlan);

router.get('/getPageQuantity',GetPageQuantity);
router.get('/firstShow',FirstShow);
router.post('/showPage',ShowPage);

router.post('/fetchPlan',FetchPlan);
router.post('/conditionPlan',ConditionPlan);

router.post('/deletePlan',DeletePlan);
module.exports=router;
